%{
    #include <stdio.h>
    #include "test.tab.h"
    extern int yylval;
%}
%%
"+" {printf(yytext);return ADD;}
"-" {printf(yytext);return SUB;}
"*" {printf(yytext);return MUL;}
"/" {printf(yytext);return DIV;}
"|" {printf(yytext);return ABS;}
[0-9]+ {printf(yytext);yylval=atoi(yytext);return NUMBER;}
\n {return EOL;}
%%